package com.example.lotterysystem.controller.param;

import lombok.Data;

import java.io.Serializable;

@Data
public class PageParam implements Serializable {

    // 当前页
    private Integer currentPage = 1;

    // 每页的数量
    private Integer pageSize = 10;

    public Integer getOffset(){
        return (currentPage-1) * pageSize;
    }
}
